package com.sjgtw.cloud.web.freeze.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sjgtw.cloud.common.core.annotation.Excel;
import com.sjgtw.cloud.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 冻害记录对象 t_eg_freeze_record
 * 
 * @author lvyoufang
 * @date 2024-03-17
 */
@ApiModel(value="冻害记录对象", description="t_eg_freeze_record")
public class FreezeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 区段 */
    @ApiModelProperty(value = "区段")
    @Excel(name = "区段")
    private Long section;

    /** 工区 */
    @ApiModelProperty(value = "工区")
    @Excel(name = "工区")
    private Long workArea;

    /** 区段名称 */
    @ApiModelProperty(value = "区段名称")
    @Excel(name = "区段名称")
    private String sectionName;

    /** 工区名称 */
    @ApiModelProperty(value = "工区名称")
    @Excel(name = "工区名称")
    private String workAreaName;

    /** 类型 */
    @ApiModelProperty(value = "类型")
    @Excel(name = "类型")
    private String freezeType;

    /** 行别 */
    @ApiModelProperty(value = "行别")
    @Excel(name = "行别")
    private String xingType;

    /** 公里标 */
    @ApiModelProperty(value = "公里标")
    @Excel(name = "公里标")
    private String kilometer;

    /** 日期 */
    @ApiModelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期")
    private Date freezeTime;

    /** 长度 */
    @ApiModelProperty(value = "长度")
    @Excel(name = "长度")
    private String length;

    /** 高度-左股 */
    @ApiModelProperty(value = "高度-左股")
    @Excel(name = "高度-左股")
    private String heigthLeft;

    /** 高度-右股 */
    @ApiModelProperty(value = "高度-右股")
    @Excel(name = "高度-右股")
    private String heigthRight;

    /** 曲直线 */
    @ApiModelProperty(value = "曲直线")
    @Excel(name = "曲直线")
    private String lineType;

    /** TQI */
    @ApiModelProperty(value = "TQI")
    @Excel(name = "TQI")
    private String tqi;

    /** 恢复情况是否提交 */
    @ApiModelProperty(value = "恢复情况是否提交")
    @Excel(name = "恢复情况是否提交")
    private Boolean restoreSubmited;

    /** 回落情况是否提交 */
    @ApiModelProperty(value = "回落情况是否提交")
    @Excel(name = "回落情况是否提交")
    private Boolean fallbackSubmited;

    /** 创建人id */
    @ApiModelProperty(value = "创建人id")
    @Excel(name = "创建人id")
    private Long createUserId;

    private List<Long> deptIds;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSection(Long section) 
    {
        this.section = section;
    }

    public Long getSection() 
    {
        return section;
    }
    public void setWorkArea(Long workArea) 
    {
        this.workArea = workArea;
    }

    public Long getWorkArea() 
    {
        return workArea;
    }
    public void setSectionName(String sectionName) 
    {
        this.sectionName = sectionName;
    }

    public String getSectionName() 
    {
        return sectionName;
    }
    public void setWorkAreaName(String workAreaName) 
    {
        this.workAreaName = workAreaName;
    }

    public String getWorkAreaName() 
    {
        return workAreaName;
    }
    public void setFreezeType(String freezeType) 
    {
        this.freezeType = freezeType;
    }

    public String getFreezeType() 
    {
        return freezeType;
    }
    public void setXingType(String xingType) 
    {
        this.xingType = xingType;
    }

    public String getXingType() 
    {
        return xingType;
    }
    public void setKilometer(String kilometer) 
    {
        this.kilometer = kilometer;
    }

    public String getKilometer() 
    {
        return kilometer;
    }
    public void setFreezeTime(Date freezeTime)
    {
        this.freezeTime = freezeTime;
    }

    public Date getFreezeTime()
    {
        return freezeTime;
    }
    public void setLength(String length) 
    {
        this.length = length;
    }

    public String getLength() 
    {
        return length;
    }
    public void setHeigthLeft(String heigthLeft) 
    {
        this.heigthLeft = heigthLeft;
    }

    public String getHeigthLeft() 
    {
        return heigthLeft;
    }
    public void setHeigthRight(String heigthRight) 
    {
        this.heigthRight = heigthRight;
    }

    public String getHeigthRight() 
    {
        return heigthRight;
    }
    public void setLineType(String lineType) 
    {
        this.lineType = lineType;
    }

    public String getLineType() 
    {
        return lineType;
    }
    public void setTqi(String tqi) 
    {
        this.tqi = tqi;
    }

    public String getTqi() 
    {
        return tqi;
    }
    public void setRestoreSubmited(Boolean restoreSubmited)
    {
        this.restoreSubmited = restoreSubmited;
    }

    public Boolean getRestoreSubmited()
    {
        return restoreSubmited;
    }
    public void setFallbackSubmited(Boolean fallbackSubmited)
    {
        this.fallbackSubmited = fallbackSubmited;
    }

    public Boolean getFallbackSubmited()
    {
        return fallbackSubmited;
    }
    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }

    public List<Long> getDeptIds() {
        return deptIds;
    }

    public void setDeptIds(List<Long> deptIds) {
        this.deptIds = deptIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("section", getSection())
            .append("workArea", getWorkArea())
            .append("sectionName", getSectionName())
            .append("workAreaName", getWorkAreaName())
            .append("freezeType", getFreezeType())
            .append("xingType", getXingType())
            .append("kilometer", getKilometer())
            .append("freezeTime", getFreezeTime())
            .append("length", getLength())
            .append("heigthLeft", getHeigthLeft())
            .append("heigthRight", getHeigthRight())
            .append("lineType", getLineType())
            .append("tqi", getTqi())
            .append("restoreSubmited", getRestoreSubmited())
            .append("fallbackSubmited", getFallbackSubmited())
            .append("remark", getRemark())
            .append("createUserId", getCreateUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
